<div class="index-pro mb">
    <div class="p_title">
        <h2 class="tith f5">资讯</h2>
        <div class="fc_class" id="news_box">
            <php>
                $catei=0;
            </php>
            <volist name="news_cates" id="vo">
                <eq name="vo.parent_id" value="0">
                    <php>
                        $catei++;
                        $mod = $catei%2;
                    </php>
                    <eq name="mod" value="1">
                        <a href="{:U('News/index?cate_id='.$vo['cate_id'])}" rel="{$i}" id="news_b_{$i}"
                            <eq name="i" value="1">
                                class="hover"
                            </eq>>{$vo.name}<else/>·{$vo.name}</a>
                    </eq>
                    <eq name="mod" value="0">
                        <span>|</span>
                    </eq>
                </eq>
            </volist>
        </div>
        <!--end fc_class--><a class="more" href="{:U('News/index')}">查看更多</a>
    </div>
    <script>
        var nowid = 1;
        $(function(){
            $('#news_box a').each(function(i){
                $(this).hover(function(){
                    var newid = $(this).attr('rel');
                    if (nowid == newid) 
                        return;
                    $('#news_b_' + nowid).removeClass("hover");
                    $(this).addClass("hover");
                    $('#news_box').find('.news_box_' + newid).show();
                    $('#news_box').find('.news_box_' + newid).next().show();
                    $('#news_box').find('.news_box_' + nowid).hide();
                    $('#news_box').find('.news_box_' + nowid).next().hide();
                    nowid = newid;
                }, function(){
                    //$(this).removeClass("hover");
                });
            });
        });
    </script>
    <!--end p_title-->
    <div class="index-newsbox clearfix" id="news_box">
        <php>
            $catei=0;
        </php>
        <volist name="news_cates" id="vo">
            <eq name="vo.parent_id" value="0">
                <php>
                    $catei++;
                    $mod = $catei%2;
                </php>
                <div class="nbox fl <eq name="mod" value="1">mr news_box_{$i}</eq>" 
            <gt name="i" value="2">
                style="display:none"
            </gt>>
            <div class="first-nlist clearfix">
                <div class="zs-img fl">
                    <a href="#" class="img_h"><img src="../Public/Images/testimg/125_125.jpg" width="125" height="125" /></a>
                </div><!--end zs-img-->
                <div class="zs-wz fl">
                    <h3 class="tith"><a href="#" class="orange">十件必送的女朋友生日礼物推荐{$i}</a></h3>
                    <p>
                        男朋友十件必须送给男朋友的生日礼物推荐来帮
                        您推荐10件送女朋友的比送礼物…<a href="#" class="orange">[查看全文]</a>
                    </p>
                    <ul class="newslist2">
                        <li>
                            <a href="#">[老师]教师节送老师礼物有讲究</a>
                        </li>
                        <li>
                            <a href="#">[老师]教师节送老师礼物有讲究</a>
                        </li>
                    </ul>
                    <!--end newslist2-->
                </div>
                <!--end zs-wz-->
            </div>
            <!--end first-nlist-->
            <ul class="newslist2">
                <volist name="newslist[$vo['cate_id']]" id="nvo">
                    <li>
                        <span class="data">{$nvo.created|date="Y.m.d",###}</span>
                        <a href="#"><span class="orange">[{$news_cates[$nvo['cate_id']]['name']}]</span>{$nvo.name}</a>
                    </li>
                </volist>
            </ul>
            <!--end newslist2-->
            </div>
        </eq>
        </volist>
    </div>
    <!--end index-newsbox-->
</div>
